
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String contextPath = request.getContextPath();
	BProduct bPro = (BProduct) request.getAttribute("bPro");
List<BSort> sortList = (List<BSort>)request.getAttribute("sortList");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="com.zhangyj.entitis.BProduct"%>
<%@page import="java.util.List"%>
<%@page import="com.zhangyj.entitis.BSort"%><html
	xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Zhyone.com</title>
 <%@include file="/WEB-INF/jsps/head.jsp" %>
<script type="text/javascript" src="<%=contextPath %>/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
function openwin(theURL,winName,features){
	window.open(theURL,winName,features);
}
</script>
</head>
<body>
<div class="content">
<form name="f1" action="<%=contextPath %>/produce/saveMod.do" method="post">
<%=com.zhangyj.entitis.SystemParam.getSystemParam(request).toInput() %>
<input	type="hidden" name="cpbh" value="<%=bPro.getCpbh() %>" />
 <span	class="functitle">产品添加：</span>
<div class="subcontent">
<ul>
	<li>产品编号：<%=bPro.getCode()%></li>
	<li>产品名称：<input name="cpmc" style="width: 453px;"
		value="<%=bPro.getCpmc()%>" /></li>
	<li>产品规格：<input name="cpgg" style="width: 70px;"
		value="<%=bPro.getCpgg()%>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		型号：<input name="xh" style="width:70px;" value="<%=bPro.getXh()%>"/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;单
	价：<input name="dj" style="width: 70px;" value="<%=bPro.getDj()%>" />&nbsp;&nbsp;元</li>
	<li>代购价格：<input name="dgj" style="width: 70px;"
		value="<%=bPro.getDgj()%>" />&nbsp;&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;优惠价：<input
		name="yhj" style="width: 70px;" value="<%=bPro.getYhj()%>" />&nbsp;&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手
	动 价：<input name="sdj" style="width: 70px;" value="<%=bPro.getSdj()%>" />&nbsp;&nbsp;元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积分换购价：<input
		name="jfj" style="width: 70px;" value="<%=bPro.getJfj() %>" />&nbsp;&nbsp;分</li>

	<li>产品分类：<select name="cplh" style="width: 128px;">
	      <%for (int i = 0;i < sortList.size();i++) { 
    	  BSort sort = sortList.get(i);
      %>
            <option value="<%=sort.getSortId() %>"><%=sort.getSortName() %></option>
	    <%} %>
	</select></li>
	<li>产品小图：<input name="pics" style="width: 293px;"
		value="<%=bPro.getPics()%>" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"
		name="ps" class="btnsubmit"
		onclick="openwin('<%=contextPath %>/manage/addattachs.html','','scrollbars=no,width=386,height=105,top=200,left=300');return false;"
		value="上传图片" /></li>
	<li>产品大图：<input name="picb" style="width: 293px;"
		value="<%=bPro.getPicb()%>" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button"
		name="pb" class="btnsubmit"
		onclick="openwin('<%=contextPath %>/manage/addattachb.html','','scrollbars=no,width=386,height=105,top=200,left=300');return false;"
		value="上传图片" /></li>

	<li>别&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：<input
		name="slug" style="width: 180px;" value="<%=bPro.getSlug()%>" /> <span
		style="color: #00f">*生成静态页面所用,系统预留功能</span></li>
		<li>备注：</li>
	<li style="padding-top: 10px; height: 280px;"><textarea
		name="beizhu"><%=bPro.getBeizhu()%></textarea> <script type="text/javascript">
var oFCKeditor = new FCKeditor( 'beizhu' ) ;
oFCKeditor.BasePath = '<%=contextPath %>/fckeditor/';
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '100%' ;
oFCKeditor.Height = '280' ;
oFCKeditor.ReplaceTextarea();
</script></li>
	<li style="padding: 8px 0 0 0;"><input type="submit"
		class="btnsubmit" value="保 存" /> <input type="reset"
		class="btnsubmit" /></li>
</ul>
</div>
</form>
</div>
</body>
</html>